﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;


namespace CI.UI.Prototypes
{
    /// <summary>
    /// Interaction logic for EveMapWindow.xaml
    /// </summary>
    public partial class EveMapWindow : Window
    {
        private readonly EveMapViewModel _viewModel;

        public EveMapWindow()
        {
            _viewModel = new EveMapViewModel(CI.UI.Prototypes.App.MapRepository);

            InitializeComponent();

            DataContext = _viewModel;
        }

        

        private void RedrawButton_Click(object sender, RoutedEventArgs e)
        {
            graphLayout.Relayout();
        }

        private void LayoutAlgorithms_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            graphLayout.LayoutAlgorithmType = LayoutAlgorithms.SelectedItem as string;
            graphLayout.Relayout();
        }
    }
}
